package com.data.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("onl_cgform_button")
public class OnlCgformButton implements Serializable {
    private static final long serialVersionUID = 1;
    private String buttonCode;
    private String buttonIcon;
    private String buttonName;
    private String buttonStatus;
    private String buttonStyle;
    private String cgformHeadId;
    private String exp;
    @TableId(type = IdType.ASSIGN_UUID)

    private String id;
    private String optPosition;
    private String optType;
    private Integer orderNum;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgformButton;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgformButton)) {
            return false;
        }
        OnlCgformButton onlCgformButton = (OnlCgformButton) o;
        if (!onlCgformButton.canEqual(this)) {
            return false;
        }
        Integer orderNum2 = getOrderNum();
        Integer orderNum3 = onlCgformButton.getOrderNum();
        if (orderNum2 != null ? !orderNum2.equals(orderNum3) : orderNum3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlCgformButton.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformHeadId2 = getCgformHeadId();
        String cgformHeadId3 = onlCgformButton.getCgformHeadId();
        if (cgformHeadId2 != null ? !cgformHeadId2.equals(cgformHeadId3) : cgformHeadId3 != null) {
            return false;
        }
        String buttonCode2 = getButtonCode();
        String buttonCode3 = onlCgformButton.getButtonCode();
        if (buttonCode2 != null ? !buttonCode2.equals(buttonCode3) : buttonCode3 != null) {
            return false;
        }
        String buttonName2 = getButtonName();
        String buttonName3 = onlCgformButton.getButtonName();
        if (buttonName2 != null ? !buttonName2.equals(buttonName3) : buttonName3 != null) {
            return false;
        }
        String buttonStyle2 = getButtonStyle();
        String buttonStyle3 = onlCgformButton.getButtonStyle();
        if (buttonStyle2 != null ? !buttonStyle2.equals(buttonStyle3) : buttonStyle3 != null) {
            return false;
        }
        String optType2 = getOptType();
        String optType3 = onlCgformButton.getOptType();
        if (optType2 != null ? !optType2.equals(optType3) : optType3 != null) {
            return false;
        }
        String exp2 = getExp();
        String exp3 = onlCgformButton.getExp();
        if (exp2 != null ? !exp2.equals(exp3) : exp3 != null) {
            return false;
        }
        String buttonStatus2 = getButtonStatus();
        String buttonStatus3 = onlCgformButton.getButtonStatus();
        if (buttonStatus2 != null ? !buttonStatus2.equals(buttonStatus3) : buttonStatus3 != null) {
            return false;
        }
        String buttonIcon2 = getButtonIcon();
        String buttonIcon3 = onlCgformButton.getButtonIcon();
        if (buttonIcon2 != null ? !buttonIcon2.equals(buttonIcon3) : buttonIcon3 != null) {
            return false;
        }
        String optPosition2 = getOptPosition();
        String optPosition3 = onlCgformButton.getOptPosition();
        if (optPosition2 == null) {
            if (optPosition3 == null) {
                return true;
            }
        } else if (optPosition2.equals(optPosition3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        Integer orderNum2 = getOrderNum();
        int hashCode = orderNum2 == null ? 43 : orderNum2.hashCode();
        String id = getId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = id == null ? 43 : id.hashCode();
        String cgformHeadId2 = getCgformHeadId();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = cgformHeadId2 == null ? 43 : cgformHeadId2.hashCode();
        String buttonCode2 = getButtonCode();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = buttonCode2 == null ? 43 : buttonCode2.hashCode();
        String buttonName2 = getButtonName();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = buttonName2 == null ? 43 : buttonName2.hashCode();
        String buttonStyle2 = getButtonStyle();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = buttonStyle2 == null ? 43 : buttonStyle2.hashCode();
        String optType2 = getOptType();
        int i7 = (hashCode6 + i6) * 59;
        int hashCode7 = optType2 == null ? 43 : optType2.hashCode();
        String exp2 = getExp();
        int i8 = (hashCode7 + i7) * 59;
        int hashCode8 = exp2 == null ? 43 : exp2.hashCode();
        String buttonStatus2 = getButtonStatus();
        int i9 = (hashCode8 + i8) * 59;
        int hashCode9 = buttonStatus2 == null ? 43 : buttonStatus2.hashCode();
        String buttonIcon2 = getButtonIcon();
        int i10 = (hashCode9 + i9) * 59;
        int hashCode10 = buttonIcon2 == null ? 43 : buttonIcon2.hashCode();
        String optPosition2 = getOptPosition();
        int i11 = (hashCode10 + i10) * 59;
        if (optPosition2 != null) {
            i = optPosition2.hashCode();
        }
        return i11 + i;
    }

    public void setButtonCode(String buttonCode2) {
        this.buttonCode = buttonCode2;
    }

    public void setButtonIcon(String buttonIcon2) {
        this.buttonIcon = buttonIcon2;
    }

    public void setButtonName(String buttonName2) {
        this.buttonName = buttonName2;
    }

    public void setButtonStatus(String buttonStatus2) {
        this.buttonStatus = buttonStatus2;
    }

    public void setButtonStyle(String buttonStyle2) {
        this.buttonStyle = buttonStyle2;
    }

    public void setCgformHeadId(String cgformHeadId2) {
        this.cgformHeadId = cgformHeadId2;
    }

    public void setExp(String exp2) {
        this.exp = exp2;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setOptPosition(String optPosition2) {
        this.optPosition = optPosition2;
    }

    public void setOptType(String optType2) {
        this.optType = optType2;
    }

    public void setOrderNum(Integer orderNum2) {
        this.orderNum = orderNum2;
    }

    @Override
    public String toString() {
        return "OnlCgformButton(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", buttonName=" + getButtonName() + ", buttonStyle=" + getButtonStyle() + ", optType=" + getOptType() + ", exp=" + getExp() + ", buttonStatus=" + getButtonStatus() + ", orderNum=" + getOrderNum() + ", buttonIcon=" + getButtonIcon() + ", optPosition=" + getOptPosition() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgformHeadId() {
        return this.cgformHeadId;
    }

    public String getButtonCode() {
        return this.buttonCode;
    }

    public String getButtonName() {
        return this.buttonName;
    }

    public String getButtonStyle() {
        return this.buttonStyle;
    }

    public String getOptType() {
        return this.optType;
    }

    public String getExp() {
        return this.exp;
    }

    public String getButtonStatus() {
        return this.buttonStatus;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public String getButtonIcon() {
        return this.buttonIcon;
    }

    public String getOptPosition() {
        return this.optPosition;
    }
}
